import http from '.'
/**
 * 系统操作日志
 * @param {*} params
 */
export function query(params) {
  return http.get(
    'api/v1/log/systemLoginLog/query?' + Form(params).queryString()
  )
}

export function deleteUserLoginLog(rowId) {
  return http.post('api/v1/log/userLoginLog/delete?rowId=' + rowId)
}

/**
 * 设备操作日志
 * @param {*} params
 */
export function queryDeviceOperationLog(params) {
  return http.get(
    'api/v1/log/deviceOperationLog/query?' + Form(params).queryString()
  )
}

export function deleteDeviceOperationLog(rowId) {
  return http.post('api/v1/log/deviceOperationLog/delete?rowId=' + rowId)
}

/**
 * 客户端登陆日志
 * @param {*} params
 */
export function queryOpLog(params) {
  return http.get('api/v1/log/opLog/query?' + Form(params).queryString())
}

export function deleteOpLog(rowId) {
  return http.post('api/v1/log/opLog/delete?rowId=' + rowId)
}

/**
 * 客户端登陆日志
 * @param {*} params
 */
export function querySystemLoginLog(params) {
  return http.get(
    'api/v1/log/systemLoginLog/query?' + Form(params).queryString()
  )
}

export function deleteSystemLoginLog(rowId) {
  return http.post('api/v1/log/systemLoginLog/delete?rowId=' + rowId)
}

/**
 * 支付日志
 * @param {*} params
 */
export function queryThirdPayLog(params) {
  return http.get('api/v1/log/thirdPayLog/query?' + Form(params).queryString())
}

export function deleteThirdPayLog(rowId) {
  return http.post('api/v1/log/thirdPayLog/delete?rowId=' + rowId)
}

/**
 * 设备上下线日志
 * @param {*} params
 */
export function queryDeviceOnlineOfflineLog(params) {
  return http.get(
    'api/v1/log/deviceOnlineOfflineLog/query?' + Form(params).queryString()
  )
}

export function deleteDeviceOnlineOfflineLog(rowId) {
  return http.post('api/v1/log/deviceOnlineOfflineLog/delete?rowId=' + rowId)
}

/**
 *  设备异常日志
 * @param {*} params
 */
export function queryDeviceExceptionRecordLog(params) {
  return http.get(
    'api/v1/device/deviceExceptionRecord/query?' + Form(params).queryString()
  )
}

export function deleteDeviceExceptionRecordLog(rowId) {
  return http.post('api/v1/device/deviceExceptionRecord /delete?rowId=' + rowId)
}

/**
 *  设备定时上报日志
 * @param {*} params
 */
export function querydeviceTimingPostLog(params) {
  return http.get(
    'api/v1/log/deviceTimingPostLog/query?' + Form(params).queryString()
  )
}

export function deleteDeviceTimingPostLog(rowId) {
  return http.post('api/v1/log/deviceTimingPostLog /delete?rowId=' + rowId)
}

/**
 *  设备定时上报日志
 * @param {*} params
 */
export function queryOpenDoorRecord(params) {
  return http.get(
    'api/v1/report/openDoorRecord/query?' + Form(params).queryString()
  )
}

export function deleteOpenDoorRecord(rowId) {
  return http.post('api/v1/report/openDoorRecord/delete?rowId=' + rowId)
}

/**
 *  软件升级进度日志
 * @param {*} params
 */
export function queryEquipmentUpdateLog(params) {
  return http.get(
    'api/v1/log/equipmentUpdateLog/query?' + Form(params).queryString()
  )
}

export function deleteEquipmentUpdateLog(rowId) {
  return http.post('api/v1/log/equipmentUpdateLog/delete?rowId=' + rowId)
}
/**
 * 门卡绑定日志
 * @param {*} params
 */
export function queryDoorCardBindLog(params) {
  return http.get(
    'api/v1/log/doorCardBindLog/query?' + Form(params).queryString()
  )
}
export function deleteDoorCardBindLog(rowId) {
  return http.post('api/v1/log/doorCardBindLog/delete?rowId=' + rowId)
}
/**
 * 门卡延期日志
 * @param {*} params
 */
export function queryDoorCardDelayLog(params) {
  return http.get(
    'api/v1/log/doorCardDelayLog/query?' + Form(params).queryString()
  )
}
export function deleteDoorCardDelayLog(rowId) {
  return http.post('api/v1/log/doorCardDelayLog/delete?rowId=' + rowId)
}
/**
 * 门卡授权日志
 * @param {*} params
 */
export function queryDoorCardGrantLog(params) {
  return http.get(
    'api/v1/log/doorCardGrantLog/query?' + Form(params).queryString()
  )
}
export function deleteDoorCardGrantLog(rowId) {
  return http.post('api/v1/log/doorCardGrantLog/delete?rowId=' + rowId)
}

/**
 * 门卡操作日志
 * @param {*} params
 */
export function queryDoorCardOplog(params) {
  return http.get(
    'api/v1/log/doorCardOpLog/query?' + Form(params).queryString()
  )
}
export function deleteDoorCardOplog(rowId) {
  return http.post('api/v1/log/doorCardOpLog/delete?rowId=' + rowId)
}
